﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// UserLog
	/// </summary>
    [Serializable]
	public class UserLog
	{
		/// <summary>
		/// UserLogID
        /// </summary>
        [FieldName("UserLogID")]		
		public int UserLogID
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserDataID
        /// </summary>
        [FieldName("UserDataID")]		
		public int UserDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// LogTime
        /// </summary>
        [FieldName("LogTime")]		
		public DateTime LogTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// LogIP
        /// </summary>
        [FieldName("LogIP")]		
		public string LogIP
		{
			get;
			set;
		}
        
		/// <summary>
		/// LogPlatform
        /// </summary>
        [FieldName("LogPlatform")]		
		public int LogPlatform
		{
			get;
			set;
		}
        
		/// <summary>
		/// LogType
        /// </summary>
        [FieldName("LogType")]		
		public int LogType
		{
			get;
			set;
		}
        
		/// <summary>
		/// LoginLog
        /// </summary>
        [FieldName("LoginLog")]		
		public string LoginLog
		{
			get;
			set;
		}
        
        public UserLog Clone()
        {
            return (UserLog)this.MemberwiseClone();
        }
        
        public UserLog()
        {
            LogTime = ConvertHelper.DefaultDate;
            LogIP = string.Empty;
            LoginLog = string.Empty;
        }
	}
}
